<?php
$db['return_product_pinduoduo']=array(
    'columns' =>
        array(
            'shop_id' => array(
                'type' => 'table:shop@ome',
                'label' => '来源店铺',
                'pkey' =>true,
                'required' =>true,
                'width' => 75,
                'editable' =>false,
            ),
            'return_id' => array(
                'type' => 'table:return_product@ome',
                'pkey' => true,
                'required' => true,
                'editable' => false,
                'comment' => '售后ID',
            ),
            'return_bn' => array(
                'type' => 'varchar(32)',
                'required' => true,
                'label' => '退货记录流水号',
                'comment' => '退货记录流水号',
                'editable' => false,
            ),
            'shipping_type' => array(
                'type'=>'varchar(45)',
                'label'=>'物流方式',
            ),
            'cs_status' => array(
                'type' => array(
                    1 => '不需客服介入',
                    2 => '需要客服介入',
                    3 => '客服已经介入',
                    4 => '客服初审完成',
                    5 => '客服主管复审失败',
                    6 => '客服处理完成',
                ),
                'default'=>'1',
                'comment' => '客服介入状态',
                'editable' => false,
                'Label' => '客服介入状态',
                'width' =>65,
            ),
            'operation_constraint' => array(
                'type' => array(
                    'cannot_refuse'=> '不允许操作',
                    'refund_onweb' => '需要到网页版操作',
                ),
                'default'=>'cannot_refuse',
                'editable' =>false,
                'label' => '退款约束',
            ),
            'payment_id' => array(
                'type'=>'varchar(100)',
                'Label'=>'支付交易号',
            ),
            'buyer_nick' => array(
                'type'=>'varchar(50)',
                'label'=>'买家昵称',
            ),
            'seller_nick' => array(
                'type'=>'varchar(50)',
                'label'=>'卖家昵称',
            ),
            'has_good_return' => array(
                'type' => 'varchar(32)',
                'Label'=>'买家是否需要退货',
            ),
            'good_return_time' => array(
                'type' => 'time',
                'label' => '退货时间',
            ),
            'oid' => array(
                'type' => 'varchar(50)',
                'default' => 0,
                'editable' => false,
                'label' => '子订单号',
            ),
            'refund_fee'=>array(
                'type'=>'money',
                'label'=>'需退金额',
            ),

        ),
    'index' =>
        array(
            'ind_return_apply_bn_shop' =>
                array(
                    'columns' =>
                        array(
                            0 => 'return_id',
                            1 => 'shop_id',
                        ),
                    'prefix' => 'unique',
                ),

        ),
    'engine' => 'innodb',
    'version' => '$Rev:  $',
);

